/**
 * 
 */
package viewer.main;

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.SplitPane;
import javafx.stage.Stage;
import viewer.ui.manage.FolderPane;
import viewer.ui.manage.ViewerPane;

/**
 * @author xiaolei
 *
 */
public class Main extends Application {

	@Override
	public void start(Stage primaryStage) throws Exception {
		SplitPane sp = new SplitPane();  // 分隔Pane
		
		ViewerPane viewerPane = new ViewerPane();
		FolderPane folderPane = new FolderPane(viewerPane);
		
		sp.getItems().addAll(folderPane, viewerPane);
		sp.setDividerPositions(0.275);
		SplitPane.setResizableWithParent(folderPane, false);
		
		Scene scene = new Scene(sp, 1024, 600);
		
		primaryStage.setScene(scene);
		primaryStage.setTitle("Picture Viewer");
		primaryStage.setMinWidth(800);
		primaryStage.setMinHeight(600);
		primaryStage.show();

	}

	public static void main(String[] args) {
		Application.launch(args);
	}

}
